package day7;

import java.lang.reflect.Array;
import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class DogTest4 {
    public static void main(String[] args) {
        //double []d=new double[10]
        Object d = Array.newInstance(double.class, 10);
        Array.set(d,0,1.54);
        Array.set(d,1,34);
        Array.set(d,2,2.14);
        System.out.println(Array.get(d,2));

        double[]ar= (double[]) d;
        System.out.println(Arrays.toString(ar));
    }
}
